package com.example.demo.entiy;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;


@Data
@ToString
public class Article implements Serializable {
    private Integer id;
    private String title;
    private String content;
    private String created;
    private String modified;
    private String categories;
    private String tags;
    private Integer allowComment;
    private String thumbnail;
    //一对多（文章 1 评论多）
    private List<Comment> commentList;
    //statistic
    private Integer hits;
    private Integer commentsNum;
    //集合排序序号
    private Integer idNumber;
    //分类(复合对象)
    private Categories newCategories;
    //分类的id
    private Integer categoriesId;
    //表单中旧的分类id
    private Integer odlCategoriesId;
}
